<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="renderer" content="webkit">
    <title>查询补考信息</title>
    <link href="css/base.css" rel="stylesheet" />
    <script src="js/lib/vue.js"></script>
    <script src="js/lib/axios.min.js"></script>
</head>

<body>
    <main id="app">
        <input type="number" placeholder="请输入学号" v-model="stuID" />
        <button @click="find">查询</button>
    </main>
    <script>
        new Vue({
            el: '#app',
            data: {
                stuID: '234160532'
            },
            methods: {
                find() {
                    axios.get(`http://api.localhost:1338/v1/resits/234160531`)
                        .then(function (res) {
                            console.log(res.data);
                        })
                        .catch(function (err) {
                            console.error(err);
                        })
                }
            }
        });
    </script>
</body>

</html>